import core.Downloader;
import util.HttpUtils;
import util.LogUtils;

import java.io.IOException;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) throws IOException {

        String url = null;

        if (args == null || args.length == 0) {
            while (true){
                LogUtils.info("请输入下载链接");
                Scanner scanner = new Scanner(System.in);
                url = scanner.next();

                break;
            }
        }else{
            url=args[0];
        }

        Downloader downloader = new Downloader();

        downloader.downloader(url);
    }

}
